document.addEventListener('DOMContentLoaded', function() {
    var image = document.getElementById('autoHideImage');
    var button = document.getElementById('hideButton');

    // 自动隐藏图片
    setTimeout(function() {
        image.style.height = '0';
        button.style.display = 'none';
    }, 5000);

    // 手动隐藏图片
    button.addEventListener('click', function() {
        image.style.height = '0';
        button.style.display = 'none';
    });
});